package com.wanlian.router.ui.me.message;

import android.widget.TextView;

import com.smart.android.ui.BaseActivity;
import com.smart.android.ui.app.IntentExtra;
import com.wanlian.router.R;
import com.wanlian.router.bean.Message;
import com.wanlian.router.utils.Utils;

import butterknife.BindView;

/**
 * Created by Hyu on 2018/9/18.
 * Email: fvaryu@163.com
 */
public class MessageDetailActivity extends BaseActivity {
    @BindView(R.id.tv_message)
    TextView mTextView;

    @BindView(R.id.tv_title)
    TextView mTitle;
    @BindView(R.id.tv_time)
    TextView mTime;

    @Override
    protected int layout() {
        return R.layout.activity_message_detail;
    }

    @Override
    public void initUI() {
        super.initUI();
        Message message = (Message) getIntent().getSerializableExtra(IntentExtra.EXTRA_OBJ);
        setTitle("消息");

        mTitle.setText(message.getTitle());
        mTime.setText(Utils.getDate(message.getNoticeTime()));

        mTextView.setText(message.getContent());
    }

    @Override
    public void initData() {
        super.initData();
    }
}
